/*
 * @Date: 2024-12-04 10:03:26
 * @Author: LiSong
 * @LastEditors: LiSong
 * @LastEditTime: 2024-12-04 10:11:47
 * @Description: 
 */
import { DbSourceType } from '@hp/config/pojo'
import { deepClone } from '@hp/utils/data.js'

// 通用组件的属性配置
export const commonProps = {
  layout: { type: Object },
  schema: { type: Object },
  design: { type: Boolean, default: true }
}

// 数据源配置的默认参数
export const defDataSource = {
  dataSource: deepClone({
    type: 'static',
    sqlConfig: DbSourceType.SQL.config,
    viewConfig: DbSourceType.VIEW.config,
    serverConfig: DbSourceType.SERVER.config,
    staticConfig: DbSourceType.STATIC.config,
  })
}